import request from "@/utils/request";

/**
 * @description 查询当前hr岗位
 * @param params
 * @returns {Promise}
 */
export function getMyPublish(params){
    return request({
        url:'/getMyPublish',
        method:'GET',
        params
    })
}
/**
 * @description 关闭岗位
 * @param params
 * @returns {Promise}
 */
export function doClosePublish(params){
    return request({
        url:'/doClosePublish',
        method:'GET',
        params
    })
}
/**
 * @description 开放岗位
 * @param params
 * @returns {Promise}
 */
export function doOpenPublish(params){
    return request({
        url:'/doOpenPublish',
        method:'GET',
        params
    })
}

/**
 * @description 获取岗位详情
 * @param params
 * @returns {Promise}
 */
export function findAllJobById(params){
    return request({
        url:'/findAllJobById',
        method:'GET',
        params
    })
}

/**
 * @description 提交岗位
 * @param data
 * @returns {Promise}
 */
export function addAndUpdateJob(data){
    return request({
        url:'/addAndUpdateJob',
        method:'POST',
        data
    })
}

/**
 * @description 获取岗位列表
 * @param params
 * @returns {Promise}
 */
export function getPublish(params){
    return request({
        url:'/getPublish',
        method:'GET',
        params
    })
}
/**
 * @description 根据ID查询岗位
 * @param params
 * @returns {Promise}
 */
export function getJobById(params){
    return request({
        url:'/findAllJobById',
        method:'GET',
        params
    })
}

/**
 * @description 三级岗位
 * @param params
 * @returns {Promise}
 */
export function findJobNameApi(data) {
    return request({
        url: '/findJobName',
        method: 'POST',
        data
    })
}

/**
 * @description 提交简历
 * @param params
 * @returns {Promise}
 */
export function insertWorkApplyApi(data) {
    return request({
        url: '/insertWorkApply',
        method: 'POST',
        data
    })
}
/**
 * @description 查询收到的简历
 * @returns {Promise}
 */
export function getResumeNumberApi() {
    return request({
        url: '/getResumeNumber',
        method: 'GET'
    })
}
/**
 * @description 删除新收到简历数量
 * @returns {Promise}
 */
export function delResumeNumberApi() {
    return request({
        url: '/delResumeNumber',
        method: 'GET'
    })
}
/**
 * @description 获取举报分类
 * @returns {Promise}
 */
export function getReportClassListApi() {
    return request({
        url: '/getReportClassList',
        method: 'GET'
    })
}

/**
 * @description 举报信息
 * @returns {Promise}
 */
export function insertReportApi(data) {
    return request({
        url: '/insertReport',
        method: 'POST',
        data
    })
}

/**
 * @description 行业排行
 * @returns {Promise}
 */
export function getIndustryRankingApi() {
    return request({
        url: '/getIndustryRanking',
        method: 'GET'
    })
}
/**
 * @description 看过该职位的人还看了
 * @returns {Promise}
 */
export function GuessYouLoveApi(data) {
    return request({
        url: '/getPublishByGuessYouLove',
        method: 'post',
        data
    })
}
/**
 * @description 职位福利
 * @returns {Promise}
 */
export function getWelfareListApi(data) {
    return request({
        url: '/getWelfareList',
        method: 'get',
        data
    })
}
/**
 * @description 获取职位福利
 * @returns {Promise}
 */
export function getJobWelfareListApi(params) {
    return request({
        url: '/getJobWelfareList',
        method: 'get',
        params
    })
}